#ifndef _FLASH_H_
#define _FLASH_H_

#include "stm32f10x.h"

#ifdef __cplusplus
extern "C" {
#endif

bool Flash_Read(uint32_t nAddr, uint8_t *pData, uint16_t nLength);

bool Flash_Write(uint32_t nAddr, const uint8_t *pData, uint16_t nLength);	

//void Flash_Erase(uint32_t nAddr, uint16_t nLength);

void Flash_Erase_All(void);

#ifdef __cplusplus
}
#endif

#endif //_FLASH_H_


